package no.saiboten.tourbuilder.tournament.service;

import java.util.Date;
import java.util.Map;

import no.saiboten.tourbuilder.tournament.Tournament;
import no.saiboten.tourbuilder.tournament.TournamentSize;
import no.saiboten.tourbuilder.user.User;

import org.springframework.stereotype.Service;

@Service
public interface TournamentService {

	public void createTournament(String name, Date startTime, Date endTime,
			TournamentSize size);

	public boolean addUserToTournament(User user, String tournament);

	public Map<String, Tournament> findAllTournaments();

	public Tournament getTournament(String tournamentId);

	public boolean deleteTournament(String tournamentId);

	public Map<String, Tournament> findAllTournamentsOnGivenDay(Date day);
}
